import 'package:flutter/material.dart';
import 'package:qqmusic/widget/liveitem.dart';

class tabarviewModel extends StatefulWidget {
  tabarviewModel({Key key, this.keys}) : super(key: key);
  //需要发个自的请求
  String keys;
  @override
  State<tabarviewModel> createState() => _tabarviewModelState();
}

class _tabarviewModelState extends State<tabarviewModel>
    with TickerProviderStateMixin, AutomaticKeepAliveClientMixin {
  @override
  Widget build(BuildContext context) {
    return GridView.builder(
      padding: EdgeInsets.all(0),
      gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
          crossAxisCount: 2,
          crossAxisSpacing: 10,
          mainAxisSpacing: 10,
          childAspectRatio: 0.8),
      itemCount: 10,
      itemBuilder: (BuildContext context, int index) {
        return liveitem();
      },
    );
  }

  @override
  // TODO: implement wantKeepAlive
  bool get wantKeepAlive => true;
}
